package com.jiazhong.mingxing.boot.boot05.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiazhong.mingxing.boot.boot05.bean.Student;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface StudentService extends IService<Student> {

    Student findStudentById(String id);

    // redis存储string类型的内容
    List<Student> findAll1();

    // redis存储list类型的内容
    List<Student> findAll2();

    List<Student> findAll3();

    int saveStudent(Student student);

    int updateStudent(Student student);

    int removeStudentById(String id);
}
